package BulkCmIRPConstDefs;
/**
 * Generated from IDL enum "SubState".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class SubState
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _COMPLETED = 0;
	public static final SubState COMPLETED = new SubState(_COMPLETED);
	public static final int _FAILED = 1;
	public static final SubState FAILED = new SubState(_FAILED);
	public static final int _PARTLY_REALISED = 2;
	public static final SubState PARTLY_REALISED = new SubState(_PARTLY_REALISED);
	public static final int _IN_PROGRESS = 3;
	public static final SubState IN_PROGRESS = new SubState(_IN_PROGRESS);
	public int value()
	{
		return value;
	}
	public static SubState from_int(int value)
	{
		switch (value) {
			case _COMPLETED: return COMPLETED;
			case _FAILED: return FAILED;
			case _PARTLY_REALISED: return PARTLY_REALISED;
			case _IN_PROGRESS: return IN_PROGRESS;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _COMPLETED: return "COMPLETED";
			case _FAILED: return "FAILED";
			case _PARTLY_REALISED: return "PARTLY_REALISED";
			case _IN_PROGRESS: return "IN_PROGRESS";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected SubState(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
